﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    public class EMInterview
    {
        public EMInterview()
        {
            this.Id = Guid.NewGuid();
        }
        //数据唯一标识符
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        //姓
        [Required]
        [StringLength(20)]
        public string? FirstName { get; set; }
        [Required]
        [StringLength(30)]
        //名
        public string? LastName { get; set; }
        //年龄
        [Required]
        public int Age { get; set; }
        //性别
        [Required]
        public bool Gender { get; set; }
        //关系
        [StringLength(30)]
        public string? guanxi { get; set; }
        //第一次走访时间
        public DateTime FirstTime { get; set; }
        //走访次数
        public int cishu { get; set; }
        //最后一次走访时间
        public DateTime LastTime  { get; set; }
        //最长走访时间
        public DateTime longTime { get; set; }
    }
}
